package com.huacheng.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.huacheng.cms.model.Comment;
import com.huacheng.cms.model.vo.CommentVo;

@Repository
public interface CommentMapper {
	int deleteByPrimaryKey(Long commentid);

	int insertSelective(Comment record);

	Comment selectByPrimaryKey(long commentid);

	int updateByPrimaryKeySelective(Comment record);

	int selectBySelectiveCount(Comment record);

	List<CommentVo> selectBySelective(@Param("record") Comment record, @Param("offset") long offset, @Param("rows") long rows);

}